package com.lms.desiginmode.builder.endpointbuilder;


import com.lms.desiginmode.builder.CPU;
import com.lms.desiginmode.builder.Heap;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-12-04 11:49
 * @Description:
 */
public class Test {
    public static void main(String[] args) {

        Heap.HeapBuilder heapBuilder = new Heap.HeapBuilder();
        heapBuilder.name("heap").usage(2.2);
        CPU.CPUBuilder cpuBuilder = new CPU.CPUBuilder();
        cpuBuilder.name("cpu").usage(0.2);

        Director heap = new Director(heapBuilder);
        Director cpu = new Director(cpuBuilder);
        System.out.println(heap.build());
        System.out.println(cpu.build());

    }


}
